package com.mystudy.design_patterns.factory.factory_method;

import org.junit.Test;

/**
 * @program: infoalgorithm
 * @description: 女蜗
 * @author: zhouzhilong
 * @create: 2019-02-21 14:38
 **/
public class NvWa {

    @Test
    public void testFactory() {
        AbstractHumanFactory factory = new HumanFactory();
        Human human = factory.createHuman(BlackHuman.class);
        human.getcolor();
        human.talk();

    }

}
